﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:params="http://schemas.codeplex.com/elysium/params"
                    xmlns:controls="clr-namespace:Framework.UI.Controls">
    <ResourceDictionary.MergedDictionaries>
        <controls:SharedResourceDictionary Source="/Framework.UI;component/Themes/WPF/Controls/TextBox.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <Style x:Key="{x:Type RichTextBox}" TargetType="{x:Type RichTextBox}" BasedOn="{StaticResource TextBoxBaseStyle}" >
        <Style.Resources>
            <ResourceDictionary>
                <Style TargetType="{x:Type FlowDocument}">
                    <Setter Property="FrameworkContentElement.OverridesDefaultStyle" Value="True" />
                </Style>
            </ResourceDictionary>
        </Style.Resources>
    </Style>

</ResourceDictionary>